﻿<UserControl x:Class="StockholmsStad.Windows.UI.Modules.Couple.Controls.PersonDetailsControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/StockholmsStad.Windows.UI.Infrastructure;component/Resources/ConverterDictionary.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    
    
    <StackPanel Orientation="Horizontal" ButtonBase.Click="CommonClickHandler">

        <StackPanel Orientation="Vertical">
            <Label Content="Folkbokförd i Sverige:" />
            <Label Content="Kön:" ToolTip="Se fliken lagtexter" />
        </StackPanel>

        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal"><!-- , Mode=TwoWay, Converter={StaticResource BoolToBoolConverter}, ConverterParameter=True, , Mode=TwoWay, Converter={StaticResource BoolToBoolConverter}, ConverterParameter=False -->
                <RadioButton Content="Ja" IsChecked="True"  Margin="5,0,0,0" Padding="5,0,10,0" GroupName="Nationality" Checked="rbNationality_Checked" />
                <RadioButton Content="Nej" IsChecked="" Margin="5,0,0,0" Padding="5,0,10,0" GroupName="Nationality" Checked="rbNationality_Checked" />
                <TextBox x:Name="tbNationality" Text="{Binding Person1.Nationality}" Margin="10,5,2,2" Padding="5,0,0,0" Visibility="Visible" />
            </StackPanel>

            <StackPanel Orientation="Horizontal">
                <RadioButton x:Name="rbKvinna" Content="Kvinna" Margin="5,0,0,0" Padding="5,0,10,0" GroupName="Sex" /> <!-- IsChecked="" </RadioButton>{Binding Sex, Mode=TwoWay, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Female}" />-->
                <RadioButton x:Name="rbMan" Content="Man" Padding="5,0,0,0" GroupName="Sex" /><!--IsChecked="" {Binding Sex, Mode=TwoWay, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Male}" />-->
            </StackPanel>
        </StackPanel>
    </StackPanel>
</UserControl>
